package hibernate;
import java.util.List;

import org.hibernate.Query;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import usermanager.dao.UserDao;
import usermanager.model.User;


public class UserDaoHibernate extends HibernateDaoSupport implements UserDao {

	@SuppressWarnings("unchecked")
	public List<User> findAll() {
		Query userQuery = getSession().createQuery("from User");
		return (List<User>)userQuery.list();
	}

}
